package com.jumi.microservice.stock.domain;

import com.jumi.microservice.common.base.AbstractObject;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Description 商城申请占用库存传输类
 * @ClassName StockOccupy4CommodityDTO
 * @Author Abel Yang
 * @Date 2020/9/9/009 14:17
 **/
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "StockOccupy4CommodityDTO", description = "商城申请占用库存传输类")
@Data
public class StockOccupy4CommodityDTO extends AbstractObject implements Serializable {

    private static final long serialVersionUID = -7011050502225853398L;

    @ApiModelProperty(value = "物料id")
    @NotNull
    private Long materialId;

    @ApiModelProperty(value = "商品id")
    private Long goodsId;

    @ApiModelProperty(value = "仓库id")
    @NotNull
    private Long warehouseId;

    @ApiModelProperty(value = "占用数")
    @NotNull
    private Integer occupyNum;

    @ApiModelProperty(value = "操作人")
    private String updateBy;

    @ApiModelProperty(value = "占用日志类型")
    private Byte logTypes;

    @ApiModelProperty(value = "记录日志变动原因id")
    private Long changeReasonId;
}
